package com.polelink.testcenter.dto;

public record EcuInfoDto(
    int index,
    String ecu,
    String fbom,
    String diagnosticRequestAddress,
    String logicalAddress,
    String maskApp,
    String maskBoot
) {
    //FBOM 缺省值，与ECU列相同
    //MASK_APP以及 MASK_BOOT 缺省值均为0xFFFFFFFF
    public EcuInfoDto {
        maskApp = maskApp == null ? "0xFFFFFFFF" : maskApp;
        maskBoot = maskBoot == null ? "0xFFFFFFFF" : maskBoot;
        fbom = fbom == null ? ecu : fbom;
    }
}

